package com.longqin.business.mapper;

import com.longqin.business.entity.BusRequirement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 需求管理 Mapper 接口
 * </p>
 *
 * @author longqin
 * @since 2024-12-23
 */
@Mapper
public interface BusRequirementMapper extends BaseMapper<BusRequirement> {
	
	BusRequirement selectById(@Param("id") Integer id);

    List<BusRequirement> selectPage(@Param("status") Integer status, @Param("title") String title, @Param("organizationId") Integer organizationId, 
    		@Param("startIndex") Integer startIndex, @Param("size") Integer size);
	
	int selectCount(@Param("status") Integer status, @Param("title") String title, @Param("organizationId") Integer organizationId);
	
	int updateStatus(@Param("status") Integer status, @Param("id") Integer id);
	
	BusRequirement selectByWorkId(@Param("workId") Integer workId);
}
